/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Resources;
using System.Reflection;
using System.Globalization;
using DaveSexton.DocProject.Resources;

namespace DaveSexton.DocProject
{
	public static class LocalizedVS
	{
		public static string GetCommandBarName(string name)
		{
			return CommandBarNames.ResourceManager.GetString(
				String.Concat(VSEnvironmentHost.CurrentCulture.TwoLetterISOLanguageName, name))
				?? name;
		}
	}
}
